﻿namespace IENMService.Model
{
    /// <summary>
    /// 息结果集
    /// </summary>
    public class ResponseList<T>
    {
        /// <summary>
        /// 结果编码
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 结果说明
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 结果内容
        /// </summary>
        public List<T> data { get; set; }
    }

    /// <summary>
    /// 单个结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Response<T>
    {
        /// <summary>
        /// 结果编码
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 结果说明
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 结果内容
        /// </summary>
        public T? data { get; set; }
    }

    public class Responsedata
    {
        /// <summary>
        /// 结果说明
        /// </summary>
        public string data { get; set; }
    }

    /// <summary>
    /// 科室
    /// </summary>
    public class Dept
    {
        /// <summary>
        /// 科室编号（唯一标识）
        /// </summary>
        public string deptCode { get; set; }
        /// <summary>
        /// 科室名称
        /// </summary>
        public string deptName { get; set; }
        /// <summary>
        /// 父级科室编号（多个科室的患者在一个病区）
        /// </summary>
        public string parentDeptCode { get; set; }
        /// <summary>
        /// 排序号，科室显示时的顺序,以数字表示
        /// </summary>
        public decimal sort { get; set; }
        /// <summary>
        /// 科室病区标识 1：科室 2：病区
        /// </summary>
        public string deptFlag { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime updateTime { get; set; }

    }

    /// <summary>
    /// 科室类型
    /// </summary>
    public class DeptType
    {
        /// <summary>
        /// 科室编号
        /// </summary>
        public string deptCode { get; set; }
        /// <summary>
        /// 科室名称
        /// </summary>
        public string deptName { get; set; }
        /// <summary>
        /// 科室类型 1:门诊科室 2:住院科室 3:挂号科室 4:药房科室 5:麻醉科室 6:手术室 7:执行科室8:开单科室 9: 药库科室
        /// </summary>
        public string deptTypeCode { get; set; }
        /// <summary>
        /// 科室类型名称
        /// </summary>
        public string deptTypeName { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime updateTime { get; set; }

    }



    /// <summary>
    /// 科室与病区关联关系
    /// </summary>
    public class DeptWardRelation
    {
        /// <summary>
        /// 科室编号
        /// </summary>
        public string deptCode { get; set; }
        /// <summary>
        /// 科室名称
        /// </summary>
        public string deptName { get; set; }
        /// <summary>
        /// 病区编码
        /// </summary>
        public string wardCode { get; set; }
        /// <summary>
        /// 病区名称
        /// </summary>
        public string wardName { get; set; }
        /// <summary>
        /// 逻辑删除标识 1：是 0：否
        /// </summary>
        public string deleteFlag { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime updateTime { get; set; }

    }


    /// <summary>
    /// 职工与科室关系
    /// </summary>
    public class UsersDept
    {
        /// <summary>
        /// 职工编号，唯一标识
        /// </summary>
        public string userId { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 对应 HIS 系统中的用户编号或者职工编号
        /// </summary>
        public string userCode { get; set; }
        /// <summary>
        /// 对应 HIS 系统中的登录账号
        /// </summary>
        public string loginName { get; set; }
        /// <summary>
        /// 对应 HIS 系统中登录密码
        /// </summary>
        public string loginPass { get; set; }
        /// <summary>
        /// 职工所属科室编号
        /// </summary>
        public string deptCode { get; set; }
        /// <summary>
        /// 职工所属科室名称
        /// </summary>
        public string deptName { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime updateTime { get; set; }

    }


    /// <summary>
    /// 职工信息
    /// </summary>
    public class User
    {
        /// <summary>
        /// 职工编号，唯一标识
        /// </summary>
        public string userId { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 职工性别 0:未知的性格 1:男 2:女 9:未说明的性别
        /// </summary>
        public string userGender { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string idCard { get; set; }
        /// <summary>
        /// 对应 HIS 系统中的用户编号或者职工编号
        /// </summary>
        public string userCode { get; set; }
        /// <summary>
        /// 对应 HIS 系统中的登录账号
        /// </summary>
        public string loginName { get; set; }
        /// <summary>
        /// 对应 HIS 系统中登录密码
        /// </summary>
        public string loginPass { get; set; }
        /// <summary>
        /// 密码加密方式
        /// </summary>
        public string passwordEncryptType { get; set; }
        /// <summary>
        /// Ca Ukey 的唯一序列号
        /// </summary>
        public string caUniqueId { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime updateTime { get; set; }

    }


    /// <summary>
    /// 职工与角色关系信息
    /// </summary>
    public class UserRoles
    {
        /// <summary>
        /// 职工编号，唯一标识
        /// </summary>
        public string userId { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string userName { get; set; }
        /// <summary>
        /// 对应 HIS 系统中的用户编号或者职工编号
        /// </summary>
        public string userCode { get; set; }
        /// <summary>
        /// 职工角色 1:护士 2:医师 3:护理部人员 4:护理部主任 5:护理副院长 6:信息科人员 7:系统管理员 8：病区护士长
        /// </summary>
        public string roleCode { get; set; }
        /// <summary>
        /// 职工角色名称
        /// </summary>
        public string roleName { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime updateTime { get; set; }

    }

    /// <summary>
    /// 床位列表信息
    /// </summary>
    public class DeptBeds
    {
        /// <summary>
        /// 床位编号，一个病房内部床位的唯一标识
        /// </summary>
        public string bedNo { get; set; }
        /// <summary>
        /// 床位名称
        /// </summary>
        public string bedName { get; set; }
        /// <summary>
        /// 所在科室编码
        /// </summary>
        public string deptCode { get; set; }
        /// <summary>
        /// 所在病区编码
        /// </summary>
        public string wardCode { get; set; }
        /// <summary>
        /// 床位类型，表示床位的收费等级，如 2 人间、3 人间
        /// </summary>
        public string bedClass { get; set; }
        /// <summary>
        /// 床位费用
        /// </summary>
        public decimal bedCost { get; set; }
        /// <summary>
        /// 床位状态，床位的占用状态 0:空闲 1:占用
        /// </summary>
        public string bedStatus { get; set; }
        /// <summary>
        /// 房间号
        /// </summary>
        public string roomNo { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime updateTime { get; set; }

    }


    /// <summary>
    /// 患者信息
    /// </summary>
    public class Patient
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string? patientId { get; set; }
        /// <summary>
        /// 患者就诊号
        /// </summary>
        public string? medicalVisitNo { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string? inpNo { get; set; }
        /// <summary>
        /// 入院的次数
        /// </summary>
        public int? visitId { get; set; }
        /// <summary>
        /// 病房号
        /// </summary>
        public string? roomNo { get; set; }
        /// <summary>
        /// 床位号
        /// </summary>
        public string? bedNo { get; set; }
        /// <summary>
        /// 入院科室编号
        /// </summary>
        public string? admissionDeptCode { get; set; }
        /// <summary>
        /// 入院科室名称
        /// </summary>
        public string? admissionDeptName { get; set; }
        /// <summary>
        /// 入院病区编号
        /// </summary>
        public string? admissionWardCode { get; set; }
        /// <summary>
        /// 入院病区名称
        /// </summary>
        public string? admissionWardName { get; set; }
        /// <summary>
        /// 患者当前所在科室编号
        /// </summary>
        public string? deptCode { get; set; }
        /// <summary>
        /// 患者当前所在科室名称
        /// </summary>
        public string? deptName { get; set; }
        /// <summary>
        /// 患者当前所在病区编码
        /// </summary>
        public string? wardCode { get; set; }
        /// <summary>
        /// 患者当前所在病区名称
        /// </summary>
        public string? wardName { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string? patientName { get; set; }
        /// <summary>
        /// 患者性别 0:未知的性格 1:男 2:女 9:未说明的性
        /// </summary>
        public string? gender { get; set; }
        /// <summary>
        /// 患者费用类型：01 城镇职工基本医疗保险 02 城镇居民基本医疗保险 03 新型农村合作医疗 04 公务员医疗补助 05 企业补充医疗保险 06 大额补充医疗保险 07 商业医疗保险 99 其他
        /// </summary>
        public string? chargeType { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        public int? age { get; set; }
        /// <summary>
        /// 年龄月
        /// </summary>
        public int? ageMonth { get; set; }
        /// <summary>
        /// 年龄天
        /// </summary>
        public int? ageDay { get; set; }
        /// <summary>
        /// 年龄小时
        /// </summary>
        public int? ageHour { get; set; }
        /// <summary>
        /// 年龄分钟
        /// </summary>
        public int? ageMinute { get; set; }
        /// <summary>
        /// 出生日期时间
        /// </summary>
        public DateTime? birthDate { get; set; }
        /// <summary>
        /// 患者身份证号
        /// </summary>
        public string? idCard { get; set; }
        /// <summary>
        /// 国籍
        /// </summary>
        public string? nationality { get; set; }
        /// <summary>
        /// 民族
        /// </summary>
        public string? nation { get; set; }
        /// <summary>
        /// 婚姻状况：10: 未婚 20:已婚 22:再婚 23:复婚 30:丧偶 40：离婚 90:未说明的婚姻状况
        /// </summary>
        public string? maritalStatus { get; set; }
        /// <summary>
        /// 学历
        /// </summary>
        public string? education { get; set; }
        /// <summary>
        /// 患者本人或联系人地址中的村或城市的街、路、里、弄等名称
        /// </summary>
        public string? contactAddress { get; set; }
        /// <summary>
        /// 患者本人户口所在地名称
        /// </summary>
        public string? accountAddress { get; set; }
        /// <summary>
        /// 发病节气
        /// </summary>
        public string? onsetSolarTerm { get; set; }
        /// <summary>
        /// 证型
        /// </summary>
        public string? syndromeType { get; set; }
        /// <summary>
        /// 入院方式
        /// </summary>
        public string? admissionForm { get; set; }
        /// <summary>
        /// 联系人姓名
        /// </summary>
        public string? contactName { get; set; }
        /// <summary>
        /// 家庭关系,参考 GB/T 4761-2008 二位数字代码
        /// </summary>
        public string? relationShip { get; set; }
        /// <summary>
        /// 患者电话号码
        /// </summary>
        public string? phone { get; set; }
        /// <summary>
        /// 联系人电话号码
        /// </summary>
        public string? contactPhone { get; set; }
        /// <summary>
        /// 入院日期时间
        /// </summary>
        public DateTime? admissionTime { get; set; }
        /// <summary>
        /// 首次入科日期时间
        /// </summary>
        public DateTime? deptedTime { get; set; }
        /// <summary>
        /// 出科日期时间
        /// </summary>
        public DateTime? leaveTime { get; set; }
        /// <summary>
        /// 出院日期时间
        /// </summary>
        public DateTime? actualLeaveTime { get; set; }
        /// <summary>
        /// 入院诊断编码
        /// </summary>
        public string? diagnosisCode { get; set; }
        /// <summary>
        /// 入院诊断名称
        /// </summary>
        public string? diagnosisName { get; set; }
        /// <summary>
        /// 主治医生编号
        /// </summary>
        public string? doctorCode { get; set; }
        /// <summary>
        /// 主治医生姓名
        /// </summary>
        public string? doctorName { get; set; }
        /// <summary>
        /// 责任护士编号
        /// </summary>
        public string? nurseCode { get; set; }
        /// <summary>
        /// 责任护士姓名
        /// </summary>
        public string? nurseName { get; set; }
        /// <summary>
        /// 护理级别代码 1: 特级护理 2: Ⅰ级护理 3: Ⅱ级护理 4: Ⅲ级护理
        /// </summary>
        public string? nurseLevel { get; set; }
        /// <summary>
        /// 护理级别名称 特级护理， Ⅰ级护理 ，Ⅱ级护理，Ⅲ级护理
        /// </summary>
        public string? nurseLevelName { get; set; }
        /// <summary>
        /// 护士长编号
        /// </summary>
        public string? headNurseCode { get; set; }
        /// <summary>
        /// 护士长名称
        /// </summary>
        public string? headNurseName { get; set; }
        /// <summary>
        /// 科室主任编号
        /// </summary>
        public string? headDeptCode { get; set; }
        /// <summary>
        /// 科室主任名称
        /// </summary>
        public string? headDeptName { get; set; }
        /// <summary>
        /// 出院判断0在院，1出院，8结算，99注销
        /// </summary>
        public decimal CYPB { get; set; }

    }


    /// <summary>
    /// 患者转科记录信息
    /// </summary>
    public class TransferRecord
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string? PATIENT_ID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string? INP_NO { get; set; }
        /// <summary>
        /// 入院的次数
        /// </summary>
        public int? VISIT_ID { get; set; }
        /// <summary>
        /// 转出科室编号
        /// </summary>
        public string? TRANSFER_OUT_DEPT_CODE { get; set; }
        /// <summary>
        /// 转出科室名称
        /// </summary>
        public string? TRANSFER_OUT_DEPT_NAME { get; set; }
        /// <summary>
        /// 转出病区编号
        /// </summary>
        public string? TRANSFER_OUT_WARD_CODE { get; set; }
        /// <summary>
        /// 转出病区名称
        /// </summary>
        public string? TRANSFER_OUT_WARD_NAME { get; set; }
        /// <summary>
        /// 转出操作员编号
        /// </summary>
        public string? TRANSFER_OUT_USER_CODE { get; set; }
        /// <summary>
        /// 转出操作员姓名
        /// </summary>
        public string? TRANSFER_OUT_USER_NAME { get; set; }
        /// <summary>
        /// 转出科室床位号
        /// </summary>
        public string? TRANSFER_OUT_BED_NO { get; set; }
        /// <summary>
        /// 转出日期时间
        /// </summary>
        public DateTime? TRANSFER_OUT_DATE { get; set; }
        /// <summary>
        /// 转入科室编号
        /// </summary>
        public string? TRANSFER_IN_DEPT_CODE { get; set; }
        /// <summary>
        /// 转入科室名称
        /// </summary>
        public string? TRANSFER_IN_DEPT_NAME { get; set; }
        /// <summary>
        /// 转入病区编号
        /// </summary>
        public string? TRANSFER_IN_WARD_CODE { get; set; }
        /// <summary>
        /// 转入病区名称
        /// </summary>
        public string? TRANSFER_IN_WARD_NAME { get; set; }
        /// <summary>
        /// 转入操作员编号
        /// </summary>
        public string? TRANSFER_IN_USER_CODE { get; set; }
        /// <summary>
        /// 转入操作员姓名
        /// </summary>
        public string? TRANSFER_IN_USER_NAME { get; set; }
        /// <summary>
        /// 转入科室床位号
        /// </summary>
        public string? TRANSFER_IN_BED_NO { get; set; }
        /// <summary>
        /// 转入日期时间
        /// </summary>
        public DateTime? TRANSFER_IN_DATA { get; set; }

    }


    /// <summary>
    /// 患者出院撤回记录
    /// </summary>
    public class PatientLeaveRevoke
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string? PATIENT_ID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string? INP_NO { get; set; }
        /// <summary>
        /// 入院的次数
        /// </summary>
        public int? VISIT_ID { get; set; }
        /// <summary>
        /// 科室编号
        /// </summary>
        public string? DEPT_CODE { get; set; }
        /// <summary>
        /// 科室名称
        /// </summary>
        public string? DEPT_NAME { get; set; }
        /// <summary>
        /// 操作员编号
        /// </summary>
        public string? OPERATE_USER_CODE { get; set; }
        /// <summary>
        /// 操作员姓名
        /// </summary>
        public string? OPERATE_USER_NAME { get; set; }
        /// <summary>
        /// 撤回时间
        /// </summary>
        public DateTime? OPERATE_TIME { get; set; }

    }


    /// <summary>
    /// 医嘱用法信息
    /// </summary>
    public class DoctorAdviceUsage
    {
        /// <summary>
        /// 用法编码
        /// </summary>
        public string CODE { get; set; }
        /// <summary>
        /// 用法名称
        /// </summary>
        public string NAME { get; set; }
        /// <summary>
        /// 国标编码，如无可空
        /// </summary>
        public string GB_CODE { get; set; }
        /// <summary>
        /// 国标值含义
        /// </summary>
        public string GB_NAME { get; set; }
        /// <summary>
        /// 拉丁缩写
        /// </summary>
        public string LATIN_ABBREVIATION { get; set; }
        /// <summary>
        /// 拼音码
        /// </summary>
        public string PINYIN_CODE { get; set; }
        /// <summary>
        /// 用法分类编码
        /// </summary>
        public string MODEL_TAKE_DRUG { get; set; }
        /// <summary>
        /// 用法分类名称，例如：口服类、外用类
        /// </summary>
        public string MODEL_TAKE_DRUG_NAME { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }

    }

    /// <summary>
    /// 医嘱类型信息
    /// </summary>
    public class DoctorAdviceType
    {
        /// <summary>
        /// 类型编码
        /// </summary>
        public string CODE { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string NAME { get; set; }
        /// <summary>
        /// 国标值 1:长期医嘱; 2:临时医嘱; 3:出院医嘱 4:固定项目医嘱 9:其他;
        /// </summary>
        public string GB_CODE { get; set; }
        /// <summary>
        /// 国标值含义
        /// </summary>
        public string GB_NAME { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }

    }

    /// <summary>
    /// 医嘱类别信息
    /// </summary>
    public class DoctorAdviceCategory
    {
        /// <summary>
        /// 类别编码
        /// </summary>
        public string CODE { get; set; }
        /// <summary>
        /// 类别名称
        /// </summary>
        public string NAME { get; set; }
        /// <summary>
        /// 国标值 01:药品类医嘱 02:检查类医嘱 03:检验类医嘱 04:手术类医嘱 05:处置类医嘱 06:材料类医嘱 07:嘱托医嘱 08:输血类医嘱 09:护理类医嘱 10:膳食类医嘱 99:其他医嘱
        /// </summary>
        public string GB_CODE { get; set; }
        /// <summary>
        /// 国标值含义
        /// </summary>
        public string GB_NAME { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }

    }

    /// <summary>
    /// 医嘱状态信息
    /// </summary>
    public class DoctorAdviceStatus
    {
        /// <summary>
        /// 状态编码（唯一标识）
        /// </summary>
        public string CODE { get; set; }
        /// <summary>
        /// 状态名称
        /// </summary>
        public string NAME { get; set; }
        /// <summary>
        /// 国标值 
        /// </summary>
        public string GB_CODE { get; set; }
        /// <summary>
        /// 国标值含义
        /// </summary>
        public string GB_NAME { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }

    }

    /// <summary>
    /// 医嘱频次信息
    /// </summary>
    public class DoctorAdviceFrequency
    {
        /// <summary>
        /// 频次编码（唯一标识）
        /// </summary>
        public string CODE { get; set; }
        /// <summary>
        /// 频次名称
        /// </summary>
        public string NAME { get; set; }
        /// <summary>
        /// 拉丁缩写
        /// </summary>
        public string LATIN_ABBREVIATION { get; set; }
        /// <summary>
        /// 拼音码
        /// </summary>
        public string PINYIN_CODE { get; set; }
        /// <summary>
        /// 单位时间内药物使用的次数
        /// </summary>
        public string TIMES { get; set; }
        /// <summary>
        /// 单位时间内药物使用的时间点，多个用逗号隔开。格式: 08:00,12:00,16:00
        /// </summary>
        public string FREQUENCY_OF_TIME { get; set; }
        /// <summary>
        /// 国标值
        /// </summary>
        public string GB_CODE { get; set; }
        /// <summary>
        /// 国标值含义
        /// </summary>
        public string GB_NAME { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }

    }


    /// <summary>
    /// 医嘱详细信息
    /// </summary>
    public class DoctorAdvice
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string? PATIENT_ID { get; set; }
        /// <summary>
        /// 患者就诊号
        /// </summary>
        public string? MEDICAL_VISIT_NO { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string? INP_NO { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public int? VISIT_ID { get; set; }
        /// <summary>
        /// 医嘱编码，一条医嘱的唯一编号
        /// </summary>
        public string? DOCTOR_ADVICE_ID { get; set; }
        /// <summary>
        /// 医嘱组号，一个医嘱单里有多组医嘱，代表了第几组药品
        /// </summary>
        public string? DOCTOR_ADVICE_SERIAL_NUMBER { get; set; }
        /// <summary>
        /// 医嘱序号，代表一组医嘱中第几个医嘱
        /// </summary>
        public string? SERIAL_NUMBER { get; set; }
        /// <summary>
        /// 医嘱类型编码，参考 4.1.1.15 章节医嘱类型
        /// </summary>
        public string? DOCTOR_ADVICE_TYPE_CODE { get; set; }
        /// <summary>
        /// 医嘱类别编码，参考 4.1.1.16 章节医嘱类别
        /// </summary>
        public string? DOCTOR_ADVICE_CATEGORY_CODE { get; set; }
        /// <summary>
        /// 医嘱状态编码，参考 4.1.1.17 章节医嘱状态
        /// </summary>
        public string? DOCTOR_ADVICE_STATUS_CODE { get; set; }
        /// <summary>
        /// 医嘱频次编码，参考 4.1.1.18 章节医嘱频次
        /// </summary>
        public string? DOCTOR_ADVICE_FREQUENCY_CODE { get; set; }
        /// <summary>
        /// 医嘱用法编码，参考 4.1.1.15 章节医嘱用法
        /// </summary>
        public string? DOCTOR_ADVICE_USAGE_CODE { get; set; }
        /// <summary>
        /// 首次领药是否翻倍标志 1：翻倍 0：不翻倍
        /// </summary>
        public string? IS_DOUBLE { get; set; }
        /// <summary>
        /// 临床项目编码
        /// </summary>
        public string? CLINICAL_PROJECT_CODE { get; set; }
        /// <summary>
        /// 临床项目名称(医嘱内容)
        /// </summary>
        public string? CLINICAL_PROJECT_NAME { get; set; }
        /// <summary>
        /// 药品字典编码，参考 4.1.1.24 章节
        /// </summary>
        public string? DRUG_DIC_CODE { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? SPECIFICATION { get; set; }
        /// <summary>
        /// 规格单位
        /// </summary>
        public string? SPECIFICATION_UNIT { get; set; }
        /// <summary>
        /// 剂量单位,如片，瓶
        /// </summary>
        public string? DOSAGE_UNITS { get; set; }
        /// <summary>
        /// 药物使用次剂, 单次使用药物的剂量,如 1片,1 瓶
        /// </summary>
        public decimal? DOSAGE_UNITS_AMOUNT { get; set; }
        /// <summary>
        /// 药物使用次剂量，单次使用药物的剂量,如100ml
        /// </summary>
        public string? DOSAGE { get; set; }
        /// <summary>
        /// 总用量
        /// </summary>
        public string? TOTAL_DOSAGE { get; set; }
        /// <summary>
        /// 开始时间,医嘱计划开始执行当日的公元纪年日期和时间的完整描述
        /// </summary>
        public DateTime? STARTTIME { get; set; }
        /// <summary>
        /// 启用时间，医嘱启用当日的公元纪年日期和时间的完整描述
        /// </summary>
        public DateTime? ENABLETIME { get; set; }
        /// <summary>
        /// 启用护士编号
        /// </summary>
        public string? ENABLE_NURSE_CODE { get; set; }
        /// <summary>
        /// 启用护士名称
        /// </summary>
        public string? ENABLE_NURSE_NAME { get; set; }
        /// <summary>
        /// 停止医生编号
        /// </summary>
        public string? STOP_DOCTOR_CODE { get; set; }
        /// <summary>
        /// 停止医生名称
        /// </summary>
        public string? STOP_DOCTOR_NAME { get; set; }
        /// <summary>
        /// 停止护士编号
        /// </summary>
        public string? STOP_NURSE_CODE { get; set; }
        /// <summary>
        /// 停止护士名称
        /// </summary>
        public string? STOP_NURSE_NAME { get; set; }
        /// <summary>
        /// 计价标志
        /// </summary>
        public string? CHARGE_FLAG { get; set; }
        /// <summary>
        /// 医生备注
        /// </summary>
        public string? REMARK { get; set; }
        /// <summary>
        /// 停止时间，医嘱停止当日的公元纪年日期和时间的完整描述
        /// </summary>
        public DateTime? STOP_TIME { get; set; }
        /// <summary>
        /// 开立医嘱医生编号
        /// </summary>
        public string? DOCTOR_CODE { get; set; }
        /// <summary>
        /// 开立医嘱医生名称
        /// </summary>
        public string? DOCTOR_NAME { get; set; }
        /// <summary>
        /// 开嘱科室编号
        /// </summary>
        public string? ORDERING_DEPT { get; set; }
        /// <summary>
        /// 开嘱科室名称
        /// </summary>
        public string? ORDERING_DEPT_NAME { get; set; }
        /// <summary>
        /// 最近处理时间
        /// </summary>
        public DateTime? HANDLETIME { get; set; }
        /// <summary>
        /// 医嘱状态名称
        /// </summary>
        public string? DOCTOR_ADVICE_STATUS_NAME { get; set; }
        /// <summary>
        /// 药物单价
        /// </summary>
        public decimal? PRICE { get; set; }
        /// <summary>
        /// 自备药品标志 1:自 2：备
        /// </summary>
        public string? SELF_DRUG { get; set; }
        /// <summary>
        /// 药品是否出院带药标记 1:是 0：否
        /// </summary>
        public string? TAKEAWAY_DRUG { get; set; }
        /// <summary>
        /// 领药方式 ：当天领药、提前一天、当日配送、次日配送
        /// </summary>
        public string? GET_DRUG_WAY { get; set; }

    }

    /// <summary>
    /// 疾病名称信息
    /// </summary>
    public class ICD10
    {
        /// <summary>
        /// Icd10 代码
        /// </summary>
        public string ICD10_CODE { get; set; }
        /// <summary>
        /// Icd10 名称
        /// </summary>
        public string ICD10_MC { get; set; }
        /// <summary>
        /// Icd10 拼音码
        /// </summary>
        public string ICD10_PINYIN_CODE { get; set; }
        /// <summary>
        /// Icd10 备注
        /// </summary>
        public string ICD10_REMARK { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }

    }

    /// <summary>
    /// 检验申请信息
    /// </summary>
    public class Examine
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string PATIENT_ID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string INP_NO { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public int VISIT_ID { get; set; }
        /// <summary>
        /// 检验项目编码
        /// </summary>
        public string EXAM_PROJECT_CODE { get; set; }
        /// <summary>
        /// 检验项目名称
        /// </summary>
        public string EXAM_PROJECT_NAME { get; set; }
        /// <summary>
        /// 申请单号，表示本次检验的唯一 id
        /// </summary>
        public string APPLY_ID { get; set; }
        /// <summary>
        /// 申请单序号，表示本次检验申请的临床项目的序号
        /// </summary>
        public string APPLY_SERIAL_NUMBER { get; set; }
        /// <summary>
        /// 医嘱编号，一条医嘱的唯一编号
        /// </summary>
        public string DOCTOR_ADVICE_ID { get; set; }
        /// <summary>
        /// 申请科室编号
        /// </summary>
        public string APPLY_DEPT_CODE { get; set; }
        /// <summary>
        /// 申请科室名称
        /// </summary>
        public string APPLY_DEPT_NAME { get; set; }
        /// <summary>
        /// 申请医生编号
        /// </summary>
        public string APPLY_DOCTOR_CODE { get; set; }
        /// <summary>
        /// 申请医生名称
        /// </summary>
        public string APPLY_DOCTOR_NAME { get; set; }
        /// <summary>
        /// 检验申请日期时间
        /// </summary>
        public DateTime APPLY_DATE { get; set; }
        /// <summary>
        /// 送检目的
        /// </summary>
        public string EXAM_CAUSE { get; set; }
        /// <summary>
        /// 标本名称
        /// </summary>
        public string SPECIMEN { get; set; }
        /// <summary>
        /// 标本试管上的条码号
        /// </summary>
        public string BARCODE { get; set; }
        /// <summary>
        /// 检验日期时间
        /// </summary>
        public DateTime? EXAM_DATE { get; set; }
        /// <summary>
        /// 检验结果 0:正常 1:异常 2:不确定
        /// </summary>
        public string EXAM_RESULT_STATUS { get; set; }
        /// <summary>
        /// 执行科室编号
        /// </summary>
        public string EXECUTE_DEPT_CODE { get; set; }
        /// <summary>
        /// 执行科室名称
        /// </summary>
        public string EXECUTE_DEPT_NAME { get; set; }

    }


    /// <summary>
    /// 检验结果信息
    /// </summary>
    public class ExamineResult
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string PATIENT_ID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string INP_NO { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public int VISIT_ID { get; set; }
        /// <summary>
        /// 申请单号，表示本次检验的唯一 id
        /// </summary>
        public string APPLY_ID { get; set; }
        /// <summary>
        /// 申请单序号，表示本次检验申请的检验项目的序号
        /// </summary>
        public string APPLY_SERIAL_NUMBER { get; set; }
        /// <summary>
        /// 检验项目编码
        /// </summary>
        public string EXAM_PROJECT_CODE { get; set; }
        /// <summary>
        /// 检验项目名称
        /// </summary>
        public string EXAM_PROJECT_NAME { get; set; }
        /// <summary>
        /// 申请科室编号
        /// </summary>
        public string APPLY_DEPT_CODE { get; set; }
        /// <summary>
        /// 申请科室名称
        /// </summary>
        public string APPLY_DEPT_NAME { get; set; }
        /// <summary>
        /// 检验报告项目名称
        /// </summary>
        public string REPORT_ITEM_NAME { get; set; }
        /// <summary>
        /// 检验报告项目编码
        /// </summary>
        public string REPORT_ITEM_CODE { get; set; }
        /// <summary>
        /// 检验结果值
        /// </summary>
        public string RESULT { get; set; }
        /// <summary>
        /// 检验结果单位
        /// </summary>
        public string UNITS { get; set; }
        /// <summary>
        /// 结果正常标志，检验系统返回检验结果是否正常的标志，例如：偏高、偏低、阴性、阳性
        /// </summary>
        public string ABNORMAL_INDICATOR { get; set; }
        /// <summary>
        /// 检验日期时间
        /// </summary>
        public DateTime RESULT_DATE_TIME { get; set; }
        /// <summary>
        /// 正常值范围
        /// </summary>
        public string REFERENCE_RANGE { get; set; }
        /// <summary>
        /// 报告签发者或检验操作者姓名
        /// </summary>
        public string TRANSCRIPTIONIST { get; set; }
        /// <summary>
        /// 校对者姓名
        /// </summary>
        public string VERIFIED_BY { get; set; }
        /// <summary>
        /// 是否危急标志（1：危急；0：不危急）
        /// </summary>
        public int ALARM_FLAG { get; set; }

    }


    /// <summary>
    /// 检查申请和报告信息
    /// </summary>
    public class Inspect
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string PATIENT_ID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string INP_NO { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public int VISIT_ID { get; set; }
        /// <summary>
        /// 检查项目编码
        /// </summary>
        public string INPECT_PROJECT_CODE { get; set; }
        /// <summary>
        /// 检查项目名称
        /// </summary>
        public string INPECT_PROJECT_NAME { get; set; }
        /// <summary>
        /// 申请单号，表示本次检查的唯一 id
        /// </summary>
        public string APPLY_ID { get; set; }
        /// <summary>
        /// 医嘱编码，一条医嘱的唯一编码
        /// </summary>
        public string DOCTOR_ADVICE_ID { get; set; }
        /// <summary>
        /// 申请科室编号
        /// </summary>
        public string APPLY_DEPT_CODE { get; set; }
        /// <summary>
        /// 申请科室名称
        /// </summary>
        public string APPLY_DEPT_NAME { get; set; }
        /// <summary>
        /// 申请医生编号
        /// </summary>
        public string APPLY_DOCTOR_CODE { get; set; }
        /// <summary>
        /// 申请医生名称
        /// </summary>
        public string APPLY_DOCTOR_NAME { get; set; }
        /// <summary>
        /// 检查申请日期时间
        /// </summary>
        public DateTime APPLY_DATE { get; set; }
        /// <summary>
        /// 检查目的
        /// </summary>
        public string INPECT_PURPOSE { get; set; }
        /// <summary>
        /// 临床诊断
        /// </summary>
        public string CLINICAL_DIAGNOSIS { get; set; }
        /// <summary>
        /// 检查部位
        /// </summary>
        public string POSITION { get; set; }
        /// <summary>
        /// 检查日期时间
        /// </summary>
        public DateTime? EXAM_DATE { get; set; }
        /// <summary>
        /// 检查结果
        /// </summary>
        public string INPECT_RESULT { get; set; }
        /// <summary>
        /// 诊断建议
        /// </summary>
        public string DIAGNOSIS_SUGGEST { get; set; }
        /// <summary>
        /// 审核人姓名
        /// </summary>
        public string VERIFIED_BY { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? VERIFIED_TIME { get; set; }
        /// <summary>
        /// 执行科室编号
        /// </summary>
        public string EXECUTE_DEPT_CODE { get; set; }
        /// <summary>
        /// 执行科室名称
        /// </summary>
        public string EXECUTE_DEPT_NAME { get; set; }

    }


    /// <summary>
    /// 临床诊疗项目
    /// </summary>
    public class ClinicalProject
    {
        /// <summary>
        /// 临床项目编码
        /// </summary>
        public string CLINICALPROJECT_CODE { get; set; }
        /// <summary>
        /// 临床项目名称
        /// </summary>
        public string CLINICALPROJECT_NAME { get; set; }
        /// <summary>
        /// 医嘱类别编码
        /// </summary>
        public string DOCTOR_ADVICE_CATEGORY_CODE { get; set; }
        /// <summary>
        /// 医嘱类别名称
        /// </summary>
        public string DOCTOR_ADVICE_CATEGORY_NAME { get; set; }
        /// <summary>
        /// 助记码
        /// </summary>
        public string MNEMONI_CODE { get; set; }
        /// <summary>
        /// 执行科室编号
        /// </summary>
        public string EXECUTE_DEPT_CODE { get; set; }
        /// <summary>
        /// 执行科室名称
        /// </summary>
        public string EXECUTE_DEPT_NAME { get; set; }
        /// <summary>
        /// 执行终端
        /// </summary>
        public string EXECUTE_TERMINAL { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }
       
    }


    /// <summary>
    /// 新生儿信息
    /// </summary>
    public class Baby
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string PATIENT_ID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string INP_NO { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public int VISIT_ID { get; set; }
        /// <summary>
        /// 新生儿住院号
        /// </summary>
        public string BABY_INP_NO { get; set; }
        /// <summary>
        /// 新生儿姓名
        /// </summary>
        public string BABY_NAME { get; set; }
        /// <summary>
        /// 新生儿性别 0:未知的性格 1:男 2:女 9:未说明的性格
        /// </summary>
        public string GENDER { get; set; }
        /// <summary>
        /// 医出生日期时间
        /// </summary>
        public DateTime BIRTHDATA { get; set; }
        /// <summary>
        /// 出生方式（例如：顺产、剖腹产）
        /// </summary>
        public string BIRTH_MODE { get; set; }
        /// <summary>
        /// 体重(g)
        /// </summary>
        public int WEIGHT { get; set; }
        /// <summary>
        /// 头围
        /// </summary>
        public string HEAD_CRCM { get; set; }
        /// <summary>
        /// 患者科室编号
        /// </summary>
        public string DEPT_CODE { get; set; }
        /// <summary>
        /// 患者科室名称
        /// </summary>
        public string DEPT_NAME { get; set; }
        
    }


    /// <summary>
    /// 药品目录
    /// </summary>
    public class DrugDictionary
    {
        /// <summary>
        /// 药典编码（唯一标识）
        /// </summary>
        public string DRUG_DIC_CODE { get; set; }
        /// <summary>
        /// 药品拼音码
        /// </summary>
        public string PINYIN_CODE { get; set; }
        /// <summary>
        /// 药品名称
        /// </summary>
        public string DRUG_NAME { get; set; }
        /// <summary>
        /// 药品规格
        /// </summary>
        public string SPECIFICATION { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string UNITS { get; set; }
        /// <summary>
        /// 剂型代码
        /// </summary>
        public string FORMULA_CODE { get; set; }
        /// <summary>
        /// 剂型名称
        /// </summary>
        public string FORMULA_NAME { get; set; }
        /// <summary>
        /// 是否是皮试药 0：不是 1：是
        /// </summary>
        public string IS_SKIN_TEST { get; set; }
        /// <summary>
        /// 皮试药物分类编码
        /// </summary>
        public string SKIN_TEST_CODE { get; set; }
        /// <summary>
        /// 皮试药物分类
        /// </summary>
        public string SKIN_TEST_CATE_NAME { get; set; }
        /// <summary>
        /// 是否是高警药物 0：不是 1：是
        /// </summary>
        public string IS_HIGH_POLICE { get; set; }
        /// <summary>
        /// 高警药物分类
        /// </summary>
        public string HIGH_POLICE_TYPE { get; set; }
        /// <summary>
        /// 高警提醒信息
        /// </summary>
        public string HIGH_POLICE_INFO { get; set; }
        /// <summary>
        /// 数据更新时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }

    }


    /// <summary>
    /// 换床信息
    /// </summary>
    public class ChangeBeds
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string PATIENT_ID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string INP_NO { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public int VISIT_ID { get; set; }
        /// <summary>
        /// 所在科室编号
        /// </summary>
        public string DEPT_CODE { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string PATIENT_NAME { get; set; }
        /// <summary>
        /// 原主治医生编号
        /// </summary>
        public string ORIGIN_DOCTOR_CODE { get; set; }
        /// <summary>
        /// 原主治医生姓名
        /// </summary>
        public string ORIGIN_DOCTOR_NAME { get; set; }
        /// <summary>
        /// 现主治医生编号
        /// </summary>
        public string PRESENT_DOCTOR_CODE { get; set; }
        /// <summary>
        /// 现主治医生姓名
        /// </summary>
        public string PRESENT_DOCTOR_NAME { get; set; }
        /// <summary>
        /// 更换主治医师的时间
        /// </summary>
        public DateTime? CHANGE_DOCTOR_TIME { get; set; }
        /// <summary>
        /// 责任护士编号
        /// </summary>
        public string NURSE_CODE { get; set; }
        /// <summary>
        /// 责任护士姓名
        /// </summary>
        public string NURSE_NAME { get; set; }
        /// <summary>
        /// 原床位编号
        /// </summary>
        public string ORIGIN_BED_NO { get; set; }
        /// <summary>
        /// 现床位编号
        /// </summary>
        public string PRESENT_BED_NO { get; set; }
        /// <summary>
        /// 换床时间
        /// </summary>
        public DateTime CHANGE_BED_TIME { get; set; }

    }

    /// <summary>
    /// 患者撤销入科记录
    /// </summary>
    public class OutWardRecord
    {
        /// <summary>
        /// 住院号
        /// </summary>
        public string INP_NO { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public int VISIT_ID { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public string OPERATOR_CODE { get; set; }
        /// <summary>
        /// 操作姓名
        /// </summary>
        public string OPERATOR_NAME { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? OPERATE_TIME { get; set; }

    }

    /// <summary>
    /// 患者疾病诊断信息
    /// </summary>
    public class Diagnose
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string PATIENT_ID { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string INP_NO { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public int VISIT_ID { get; set; }
        /// <summary>
        /// 科室编号
        /// </summary>
        public string DEPT_CODE { get; set; }
        /// <summary>
        /// 诊断编码
        /// </summary>
        public string? DIAGNOSE_CODE { get; set; }
        /// <summary>
        /// 诊断类别：入院诊断、住院诊断、出院诊断
        /// </summary>
        public string DIAGNOSE_CATEGORY { get; set; }
        /// <summary>
        /// 诊断类型：中医、西医、证型等
        /// </summary>
        public string DIAGNOSE_TYPE { get; set; }
        /// <summary>
        /// 诊断内容
        /// </summary>
        public string DIAGNOSE { get; set; }
        /// <summary>
        /// 诊断日期时间
        /// </summary>
        public DateTime DIAGNOSE_TIME { get; set; }
        /// <summary>
        /// 诊断开立人编号
        /// </summary>
        public string DIAGNOSE_DOCTOR_CODE { get; set; }
        /// <summary>
        /// 诊断开立人姓名
        /// </summary>
        public string DIAGNOSE_DOCTOR_NAME { get; set; }
        /// <summary>
        /// 入院日期时间
        /// </summary>
        public DateTime ADMISSION_TIME { get; set; }
        /// <summary>
        /// 出科日期时间
        /// </summary>
        public DateTime? LEAVE_TIME { get; set; }

    }

    /// <summary>
    /// 患者疾病诊断信息
    /// </summary>
    public class JCSQD
    {
        /// <summary>
        /// 患者唯一号
        /// </summary>
        public string JZHM { get; set; }
        /// <summary>
        /// 住院号
        /// </summary>
        public string ZYHM { get; set; }
        /// <summary>
        /// 入院次数
        /// </summary>
        public decimal ZLXMID { get; set; }
        /// <summary>
        /// 科室编号
        /// </summary>
        public string JCMC { get; set; }
        /// <summary>
        /// 诊断编码
        /// </summary>
        public decimal SQDH { get; set; }
        /// <summary>
        /// 诊断类别：入院诊断、住院诊断、出院诊断
        /// </summary>
        public decimal? YZXH { get; set; }
        /// <summary>
        /// 诊断类型：中医、西医、证型等
        /// </summary>
        public decimal? KDKS { get; set; }
        /// <summary>
        /// 诊断内容
        /// </summary>
        public string KDYS { get; set; }
        /// <summary>
        /// 诊断日期时间
        /// </summary>
        public DateTime KDSJ { get; set; }
        /// <summary>
        /// 诊断开立人编号
        /// </summary>
        public string JCMD { get; set; }
        /// <summary>
        /// 诊断开立人姓名
        /// </summary>
        public string JBMC { get; set; }
        /// <summary>
        /// 诊断开立人姓名
        /// </summary>
        public string JCBW { get; set; }
        /// <summary>
        /// 诊断开立人姓名
        /// </summary>
        public DateTime? JCSJ { get; set; }
        /// <summary>
        /// 诊断开立人姓名
        /// </summary>
        public string JCYS { get; set; }
        /// <summary>
        /// 诊断开立人姓名
        /// </summary>
        public DateTime? BGSJ { get; set; }
        /// <summary>
        /// 入院日期时间
        /// </summary>
        public string BGYS { get; set; }
        /// <summary>
        /// 出科日期时间
        /// </summary>
        public decimal? ZXKS { get; set; }
        /// <summary>
        /// 入院日期时间
        /// </summary>
        public string JCJG { get; set; }
        /// <summary>
        /// 入院日期时间
        /// </summary>
        public string LCZD { get; set; }

    }

}
